<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>面试题目-css布局</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .layout article div {
            min-height: 60px;
        }
    </style>
    <link rel="stylesheet" href="css/style.css" />
</head>

<body>
    <article>假设高度已知，请写出三栏布局，其中左右各300px,中间自适应</article>
    <p>一.float布局</p>
    <section class="container_float">
        <div class="item_left"></div>
        <div class="item_right"></div>
        <div class="item_center">
            <h2>float布局</h2>
        </div>
    </section>
    <p>二.position布局</p>
    <section class="layout absoulte">
        <article class="left-center-right">
            <div class="left"></div>
            <div class="center">
                <h2>绝对定位方式</h2>
            </div>
            <div class="right"></div>
        </article>
    </section>
    <p>三.table布局</p>
    <section class="layout table">
        <article class="left-center-right">
            <div class="left"></div>
            <div class="center">
                <h2>table布局</h2>
            </div>
            <div class="right"></div>
        </article>
    </section>
    <p>四.flex布局</p>
    <section class="layout flexbox">
        <article class="left-center-right">
            <div class="left"></div>
            <div class="center">
                <h2>flex布局</h2>
            </div>
            <div class="right"></div>
        </article>
    </section>
    <p>五.grid布局</p>
    <section class="layout grid">
        <article class="left-center-right">
            <div class="left"></div>
            <div class="center">
                <h2>grid布局,网格布局</h2>
            </div>
            <div class="right"></div>
        </article>
    </section>
</body>
</html>